home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_3.lha
/
7_3
/
nshape.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
538b
|
26 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
define line Xline
include "shape.h"
include "7_3a.c" /* class triangle */
include "7_3c.c" /* class circle */
include "7_3d.c" /* circle::draw() */
ain()
screen_init();
shape* p1 = new triangle(point(0,0),point(10,20),point(5,5));
shape* p2 = new circle(point(20,15),17);
shape_refresh();
p1->move(10,5);
p2->move(5,10);
shape_refresh();
screen_end();
return 0;